<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="Mailbox with some customizations as described in docs" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<%@ include file="/include/person_include.jsp"%>
<body>
<div class="main fr">
    <div class="bar"></div>
    <p class="tishi bdb1">
    <span class="h2-bar"></span>修改密码</p>
    <form id="dataForm"  action="${path }/apiH5/updatePwdH5"  method="post"  >
    <div class="feedback">
        <ul class="feedback-ul">
        	<input type="hidden"  name="userId"  value="${userId }" />
        	<input type="hidden"  name="token"  value="${token }"/>
            <li><label>手机号：</label><input type="text" readonly="readonly" style="border: 0;" class="phone-input" id="phone" name="phone" value="${businessUser.phone }"></li>
            <li><label>旧密码：</label><input type="password" style="border: 1px solid #ccc;height:30px;line-height:30px;padding-left:10px;border-radius:5px;" class="phone-input" id="pwd" name="pwd" value=""></li>
            <li><label>新密码：</label><input type="password" style="border: 1px solid #ccc;height:30px;line-height:30px;padding-left:10px;border-radius:5px;" class="phone-input" id="newPwd" name="newPwd" value=""></li>
            <li><label>重复密码：</label><input type="password" style="border: 1px solid #ccc;height:30px;line-height:30px;padding-left:10px;border-radius:5px;" class="phone-input" id="newPwd2" name="newPwd2" value=""></li>
        </ul>
        <div class="tl ml125 mt20">
            <input type="submit"  value="立即提交" class="button-yellow-s" id="fabu">
            <input type="reset" value="重置" class="blueButton" id="resetId">
        </div>
    </div>
    </form>
</div>
</body>
<script>
 $("#dataForm").submit(function(){
	 if($.trim($("#pwd").val())==""){
         	alert("请输入旧密码");
		return false;
	}
	 if($("#newPwd").val()!=$("#newPwd2").val()||$("#newPwd").val().trim()==""){
         	alert("请输入新密码");
		return false;
	}
 	alert("操作成功,请确保旧密码输入正确");
 });
 
 
 
</script>

 
</html>